package com.dao.purchase;

import org.apache.axis2.databinding.types.soapencoding.Decimal;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface PurchaseMapper {

	int getTableCount(@Param(value = "tableName") String tableName);

	String getTableLast(@Param(value = "tableName") String tableName, @Param(value = "colName") String colName);

	String getOrderLast(@Param(value = "tableName") String tableName, @Param(value = "colName") String colName);

	java.math.BigDecimal getPlanSum(String planId);

	java.math.BigDecimal getAgreeSum(String planId);

	@MapKey("mmCode")
	Map<String, HashMap<String, Object>> selOrdersState(String currentDate);
}
